package com.example.demo.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;

/**
 * 基本的时间实体对象,只定义公共的时间属性
 *
 * @author test01
 */
@MappedSuperclass
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseDateTimeEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 创建时间
     */
    protected LocalDateTime createDateTime  ;

    /**
     * 修改时间
     */
    protected LocalDateTime updateDateTime=LocalDateTime.now();
}
